﻿@model GameSchool.Models.Lecture

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/Content/css/forms.css" />
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    
    <fieldset>
        <legend>Gera nýjann fyrirlestur</legend>

        <section class= "one-half">

        <div class="editor-label">
            <h2>Titill:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            <h2>Slóð á myndband:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.VideoLink)
            @Html.ValidationMessageFor(model => model.VideoLink)
        </div>
        
        <div class="editor-label">
            <h2>Upphafsdagsetning:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateStart)
            @Html.ValidationMessageFor(model => model.DateStart)
        </div>

        <div class="editor-label">
            <h2>Lokadagsetning:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateEnd)
            @Html.ValidationMessageFor(model => model.DateEnd)
        </div>

        <div class="editor-label">
            <h2>Áfangi:</h2>
        </div>
        <div class="editor-field" id="courseselector">
            @Html.EditorFor(model => model.CourseID)
            @Html.ValidationMessageFor(model => model.CourseID)
        </div>
     </section>

     <section class ="one-half last">

     <div class="editor-label">
            <h2>Lýsing:</h2>
        </div>
        <div class="editor-multiline-field">
            @Html.TextAreaFor(model => model.Descr, new { style = "Width: 100%; resize: none;" })
            @Html.ValidationMessageFor(model => model.Descr)
        </div>

        <div class="editor-label">
            <h2>Stig í boði:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaxPoints)
        <div class="validation-message">
           @Html.ValidationMessageFor(model => model.MaxPoints)
           </div> 
        </div>

        <div class="editor-label">
            <h2>Bónusstig í boði:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MaxBonusPoints)
            <div class="validation-message">
            @Html.ValidationMessageFor(model => model.MaxBonusPoints)
            </div>
        </div>

        <section class="buttonfield"> 


        <section class="one-third last">
                <input type="submit" value="Vista Breytingar" class="sendbutton" name="sendbutton" /> 
             </section>  
        
            
        </section>
      
        </section>
        </fieldset> 
      
}
